package math;

public class MathXT {
	public static double factorial(double n){
		if(n < 1){
			return 0;
		}else if(n == 1){
			return 1;
		}else{
			return n*factorial(n-1);
		}
	}
}
